package com.examination.system.administration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 寇淇芮
 * @Date 2019/10/10 09:37
 */
@Data
@Entity
@ToString
@ApiModel
@GenericGenerator(name = "attendanceId-uuid", strategy = "assigned")
@Table(name = AdministrationTableName.ATTENDANCE)
public class Attendance implements Serializable {
    @Id
    @GeneratedValue(generator = "areaTypeId-uuid")
    @ApiModelProperty(value = "员工数据的采集")
    private String  attendanceId;
    @ApiModelProperty(value = "员工id")
    private String  employeeId;
    @ApiModelProperty(value = "加班")
    private Integer overtime;
    @ApiModelProperty(value = "迟到")
    private Integer late;
    @ApiModelProperty(value = "缺勤")
    private Integer absent;
    @ApiModelProperty(value = "早退")
    private Integer leaveEarly;
    @ApiModelProperty(value = "打卡日期")
    private Date thisData;
    @ApiModelProperty(value = "部门id")
    private String departmentId;

}
